package org.bonorsoft.modules.control.service.impl;

import org.bonorsoft.modules.control.entity.Hazard;
import org.bonorsoft.modules.control.entity.InfoTemplate;
import org.bonorsoft.modules.control.mapper.InfoTemplateMapper;
import org.bonorsoft.modules.control.service.IInfoTemplateService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 信息模板对应逻辑
 * @Author: WilliamYe
 * @Date:   2021-02-07
 * @Version: V1.0
 */
@Service
public class InfoTemplateServiceImpl extends ServiceImpl<InfoTemplateMapper, InfoTemplate> implements IInfoTemplateService {

    @Override
    public List<Hazard> getHazardNameByDzbm(String code) {
        return this.baseMapper.getHazardNameByCode(code);
    }
}
